list = [2,3,45,4,9,6]
new_list = []
def get_min(list):
    a = min(list)
    list.remove(a)
    new_list.append(a)
    if len(list) > 0:
        get_min(list)
    return new_list

new_list = get_min(list)
print(new_list)